
$green-color: #67c23a;
$gray-color: #909399;
$blue-color: #7300E6;
$yellow-color: #e6a23c;
$red-color: #f56c6c;

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
  color: #3d3d3d;
  margin: 0;
  font-size: 14px;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}

.no-padding {
  padding: 0px !important;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0px;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}
.button {
  float: left;
  margin: 10px;
}
.fl {
  float: left;
}

.float-right {
  float: right;
}

.float-left {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: inline-block;
}
.flex {
  display: flex;
}
// flex 循环
@for $i from 1 through 5 {
  .flex#{$i} {
    flex: $i;
  }
}

.flex-wrap {
  flex-wrap: wrap;
}
.flex-nowrap {
  flex-wrap: nowrap;
}

.flex-row-sa,
.f-r-sa {
  justify-content: space-around;
}
.flex-row-sb,
.f-r-sb {
  justify-content: space-between;
}
.flex-row-end,
.f-row-e {
  justify-content: flex-end;
}
.flex-row-c,
.f-row-c {
  justify-content: center;
}

.flex-col,
.f-col {
  flex-direction: column;
}

.flex-align-start,
.f-a-s {
  align-items: flex-start;
}
.flex-align-center,
.f-a-c {
  align-items: center;
}
.flex-align-end,
.f-a-e {
  align-items: flex-end;
}

.flex-self-start,
.f-s-s {
  align-self: flex-start;
}
.flex-self-center,
.f-s-c {
  align-self: center;
}
.flex-self-end,
.f-s-e {
  align-self: flex-end;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
  }
}

.bg-green {
  background-color: $green-color;
}

.bg-gray {
  background-color: $gray-color;
}

.bg-blue {
  background-color: $blue-color;
}

.bg-yellow {
  background-color: $yellow-color;
}

.bg-red {
  background-color: $red-color;
}

.text-bold {
  font-weight: bold;
}

.text-green {
  color: $green-color;
}

.text-gray {
  color: $gray-color;
}

.text-blue {
  color: $blue-color;
}

.text-yellow {
  color: $yellow-color;
}

.text-red {
  color: $red-color;
}

.text-label {
  display: inline;
  padding: 0.2em 0.5em;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25em;
}

.text-badge {
  display: inline-block;
  min-width: 10px;
  padding: 0.2em 0.5em;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 10px;
}

//main-container全局样式
.app-container {
  padding: 5px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 0px;
}

.text-center {
  text-align: center;
}
// table表单操作上下错行
// .el-table--border .el-table__fixed-body-wrapper {
//   top: 41px !important;
// }
.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(
    90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%
  );

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  .filter-item {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

.card {
  background-color: #fff;
  padding: 5px;
  border-radius: 3px;
}

.card-inside {
  background-color: #f5f7fa;
  padding: 5px;
  border-radius: 3px;
}

.el-card-con {
  padding: 4px;
  border-radius: 3px;
  .el-card__body {
    height: 100%;
    padding: 4px;
  }
}

.width100 {
  width: 100%;
}

.height100 {
  height: 100%;
}

// 文字超出后...
.overflow-point {
  white-space: nowrap;
  text-overflow: ellipsis;
  -o-text-overflow: ellipsis;
  -ms-text-overflow: ellipsis;
  -moz-text-overflow: ellipsis;
  -webkit-text-overflow: ellipsis;
  overflow: hidden;
}
.canCss {
  .el-form-item {
    margin-bottom: 2px !important;
  }
  .el-range-editor--small {
    max-width: 100% !important;
  }
  .el-form-item--small.el-form-item {
    margin-bottom: 2px !important;
  }
}
/*
** 常用类名样式
** songyanbin
*/

@for $i from 0 through 100 {
  .f#{$i} {
    font-size: 1px * $i !important;
  }

  .m#{$i} {
    margin: #{$i}px !important;
  }

  .mt#{$i} {
    margin-top: #{$i}px !important;
  }

  .ml#{$i} {
    margin-left: #{$i}px !important;
  }

  .mr#{$i} {
    margin-right: #{$i}px !important;
  }

  .mb#{$i} {
    margin-bottom: #{$i}px !important;
  }

  .pd#{$i} {
    padding: #{$i}px !important;
  }

  .pd-l#{$i} {
    padding-left: #{$i}px !important;
  }

  .pd-r#{$i} {
    padding-right: #{$i}px !important;
  }

  .pd-t#{$i} {
    padding-top: #{$i}px !important;
  }

  .pd-b#{$i} {
    padding-bottom: #{$i}px !important;
  }

  .radius#{$i} {
    border-radius: #{$i}px !important;
  }
}

.m-center {
  margin: 0 auto;
}

.fb {
  font-weight: bold;
}
.fber {
  font-weight: bolder;
}

.fw100 {
  font-weight: 100;
}
.fw200 {
  font-weight: 200;
}
.fw300 {
  font-weight: 300;
}
.fw400 {
  font-weight: 400;
}
.fw500 {
  font-weight: 500;
}
.fw600 {
  font-weight: 600;
}

.tc {
  text-align: center;
}
.tl {
  text-align: left;
}
.tr {
  text-align: right;
}

.pr {
  position: relative;
}
.pa {
  position: absolute;
}

.pa-center {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
}

.panel-info {
  border: #e4e4e4 solid 1px;
  .panel-title {
    padding: 0 10px;
    height: 28px;
    font-size: 12px;
    line-height: 28px;
    background-color: #f1f1f1;
  }
  .panel-body {
    padding: 10px;
  }
}

.new-line {
  background-color: #bdf5e3;
}
.old-line {
  background-color: #979ff1;
}
.close-line {
  background-color: #dddddd;
}
.change-line {
  background-color: #ffd591;
}
